package ubi.quando.App;

public enum EventType {
	MEETING, I_PICK_U, PICK_ME_UP;

	public static final String SerializeName = "EventType";

	public static EventType FromInt(int i) {
		switch (i) {
		case 0:
			return MEETING;
		case 1:
			return I_PICK_U;
		case 2:
			return PICK_ME_UP;
		}
		return null;
	}

	public static int ToInt(EventType type) {
		switch (type) {
		case MEETING:
			return 0;
		case I_PICK_U:
			return 1;
		case PICK_ME_UP:
			return 2;
		}
		return -1;
	}
}
